#[link(name = "example", kind="dylib")] // Links the shared library "libexample.so"
extern "C" {
    fn hello_from_c();
    fn add_numbers(a: i32, b: i32) -> i32;
}

fn main() {
    unsafe {
        hello_from_c(); // Call the C function
        let result = add_numbers(5, 7); // Call the C function
        println!("Result from C: {}", result);
    }
}
